<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{ height: 'calc(100vh - 100px)', overflow: 'auto' }"
    @close="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32" style="width: 80%; left: 10%">
          <a-col :span="24">
            <a-form-model-item label="检查类目" prop="leimu">
              <a-textarea
                v-model="form.leimu"
                placeholder="请输入检查类目"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>

          <a-col :span="24">
            <a-form-model-item label="检查项目" prop="projects">
              <a-textarea
                v-model="form.projects"
                placeholder="请输入检查项目"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>

          <a-col :span="24">
            <a-form-model-item label="备注" prop="remark">
              <a-textarea
                v-model="form.remark"
                placeholder="请输入备注"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button @click="cancel"> 取消 </a-button>
          <a-button type="primary" @click="submitForm"> 保存 </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import BizMonthModelDetialsEditForm from "./BizMonthModelDetialsForm";
export default {
  ...BizMonthModelDetialsEditForm,
};
</script>
